import requests


def get_token():
    resp = requests.post("http://ihrm-test.itheima.net/api/sys/login",
                         json={"mobile": "13800000002","password": "123456"})
    return resp.json().get("data")
if __name__ == '__main__':
    token = get_token()
    print(token)
